package com.pureut.system.service;

import com.pureut.system.domain.MaterialCoding;
import com.pureut.system.domain.dto.MaterialCodingMqDto;
import com.pureut.system.domain.dto.SysTheDropDto;

import java.util.List;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
public interface IMaterialCodingService {
    int codingAdd(MaterialCoding materialCoding) throws Exception;

    int updateCodingEdit(MaterialCoding materialCoding) throws Exception;

    int deleteCodingById(long codingId) throws Exception;

    List<SysTheDropDto> selectCodingListThe(int condingId);

    MaterialCoding selectListCoding(long codingId);

    /**
     * 根据原料编码查询类型
     * @param codingId
     * @return
     */
    List<MaterialCoding> selectCodingId(String codingId);

    /**
     * 根据原料类别查询类别名称
     * @param codingId
     * @return
     */
    MaterialCoding selectCodingRulesById(String codingId);

    /**
     * 查询物料类别
     * @param
     * @return
     */
    List<MaterialCoding> selectMaterialCodingList();
}
